﻿<?php
include 'config.php';
include 'lib.php';
/*
 * 异步通知处理页面
 */

	@$pay_order_id = $_REQUEST['pay_order_id'];
	@$pay_amount = $_REQUEST['pay_amount'];
	@$pay_remark = $_REQUEST['pay_remark'];
	@$pay_product_name = $_REQUEST['pay_product_name'];
	@$sign = $_REQUEST['sign'];
	
	$data = array(
		"pay_order_id" => $pay_order_id,         
		"pay_amount" => $pay_amount,             
		"pay_remark" => $pay_remark,            
		"pay_product_name" => $pay_product_name 
	);	
	

	
	$chesign = createSign($data,md5key);
	
	
	
	if($sign===$chesign){			
		logResult("订单号：".$pay_order_id);
		echo '同步签名正确';
	}else{
		logResult("同步签名错误");
		echo '同步签名错误';
	}
	
?>
